package com.kangyi.admin.mapper;

import com.kangyi.entity.UserComplaint;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Blank
 * @version 1.0
 */
@Mapper

public interface UserComplaintMapper {

    @Select("select * from user_complaint where user_id = #{userId};")
    List<UserComplaint> getByUserId(Integer userId);


    @Delete("delete from user_complaint where user_id = #{userId};")
    void deleteByUserId(Integer userId);
}
